package com.nyp.remoter.entity;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

@Entity
public class Dog extends BaseEntity{
	
	private String name;
	private boolean goodHouseKeeper;
	@ManyToOne
	private User owner;
	@OneToMany(mappedBy="dog")
	private List<CatDogFight> fights;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isGoodHouseKeeper() {
		return goodHouseKeeper;
	}
	public void setGoodHouseKeeper(boolean goodHouseKeeper) {
		this.goodHouseKeeper = goodHouseKeeper;
	}
	public User getOwner() {
		return owner;
	}
	public void setOwner(User owner) {
		this.owner = owner;
	}
	public List<CatDogFight> getFights() {
		return fights;
	}
	public void setFights(List<CatDogFight> fights) {
		this.fights = fights;
	}

}
